#define _CRT_SECURE_NO_WARNINGS

#include "Queue.h"

void TestQueue1()
{
    Queue q;
    QueueInit(&q);
    if(QueueEmpty(&q))
    {
        puts("nullptr");
    }
    
    QueuePush(&q, 1);
    QueuePush(&q, 2);
    QueuePush(&q, 3);
    QueuePush(&q, 4);
    QueuePush(&q, 5);
	
    while(QueueSize(&q))
    {
        printf("%d ", QueueFront(&q));
        QueuePop(&q);
        QueueEmpty(&q);
    }
    
 	QueueDestory(&q);
}

int main()
{
    TestQueue1();

    return 0;
}